package com.ware4u.fx.news.server;

import org.joda.time.DateTimeZone;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

//@EnableJpaRepositories(basePackages = {"com.ware4u.*"})
//@EntityScan(basePackages = "com.ware4u.*")
@ComponentScan(value = { "com.ware4u.*" })
//@EnableJpaRepositories(basePackages = { "com.ware4u.waterfront.*", "com.ware4u.avic.*" })
//@EntityScan(basePackages = { "com.ware4u.mh.*.dao" })
@SpringBootApplication
@EnableAutoConfiguration(exclude = { SecurityAutoConfiguration.class })
@EnableScheduling
@EnableAsync
public class App {
	public static void main(String[] args) {
		DateTimeZone.setDefault(DateTimeZone.forID("Asia/Shanghai"));
		SpringApplication.run(App.class, args);
		System.out.println("init'd application context!");
	}
}